<form id="pagerForm" action="__URL__" method="post">
	<input type="hidden" name="pageNum" value="1" /> 
	<input type="hidden" name="numPerPage" value="{$numPerPage}" /> 
	<input type="hidden" name="_order" value="{$_REQUEST._order}" /> 
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}" />
</form>
<script type="text/javascript">
function reload18() {
    navTab.reload("__URL__", {});
}
function shortmessagedbltable(target,rel){
    if( target == 'sid_shortmessage'){
    $.pdialog.open("__URL__/readmsg/id/"+rel+"/sid_shortmessage="+rel,"readmsg", "查看消息", { max:false, mask:true, width: 550, height: 300});
    } 
  }
</script>
<div class="tabs">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="__URL__"
			method="post">
			<div class="searchBar">
				<ul class="searchContent">
					<li><label>我的用户名：</label> <input type="text" name="username"
						class="medium"></li>
				</ul>
				<div class="subBar">
					<ul>
						<li><div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">查询</button>
								</div>
							</div></li>
					</ul>
				</div>
			</div>
		</form>
	</div>
	<div class="tabsContent">
		<div style="display: block;" inited="1000" >
			<div layouth="10"
				style="float: left; display: block; overflow: auto; width: 150px;line-height: 21px; background-color: rgb(255, 255, 255); height: 202px; background-position: initial initial; background-repeat: initial initial;">
				<div class="accordion">
					<div class="accordionHeader">
						<h2>
							<img
								src="__PUBLIC__/themes/blue/images/accordion/shortmessage.png" /><span>Folder</span>我的消息
						</h2>
					</div>
				</div>
				<div style="border: 1px #B8D0D6;">
				<ul class="tree treeFolder" style="border: 1px #B8D0D6;">
					<li><a href="__URL__/receive" target="ajax"
						rel="jbsxBox"><img src="__PUBLIC__/Images/mailrecieve.png"
							style="margin-left: -20px;margin-bottom: -2px;" />已收消息</a></li>
					<li><a href="__URL__/outbox" target="ajax" rel="jbsxBox"><img
							src="__PUBLIC__/Images/mailsend.png" style="margin-left: -20px;margin-bottom: -2px;" />已发消息</a></li>
				</ul></div>
			</div>

			<div id="jbsxBox" class="unitBox" style="margin-left: 156px;">
				<div class="pageContent j-resizeGrid"
					style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid">
					<div class="panelBar">
						<ul class="toolBar">
						    <li><a class="add" href="__URL__/add" target="dialog" mask="true" rel="add" height="300"><span>发送信息</span></a></li>
			                <li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" postType="string" title="你确定要删除吗？"><span>删除</span></a></li>
			                <li><a class="edit" href="__URL__/modifyState/id/{sid_shortmessage}/navTabId/__MODULE__" target="ajaxTodo" callback="navTabAjaxMenu"><span>标记为已读</span></a></li>
							<!--  <li><a class="icon" href="" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li> -->
							<li class="line">line</li>
							<li><a class="icon" href="#" onclick="reload18()"><span>刷新	</span></a></li>
						</ul>
					</div>
					<table class="table" width="100%" layoutH="142" rel="jbsxBox">
						<thead>
							<tr>
								<th width="20" align="center"><input type="checkbox"
									group="ids" class="checkboxCtrl"></th>
								<th width="60" align="center">发件人</th>
								<th width="260" align="center">内容</th>
								<th width="80" align="center">发送时间</th>
								<th width="80" align="center">状态</th>
								<th width="60" align="center">操作</th>
							</tr>
						</thead>
						<tbody>
							<define name="number" value="1" />
							<volist id="vo" name="list">
							<tr target="sid_shortmessage" rel="{$vo['id']}" ondblclick="shortmessagedbltable('sid_shortmessage',{$vo.id})">
								<td><input type="checkbox" name="ids" value="{$vo['id']}" /></td>
								<td>{$vo['sendername']}</td>
								<td>{$vo['content']}</td>
								<td>{$vo['sendtime']}</td>
								<td><eq name="vo['state']" value="0">未读<else />已读</eq></td>
								<td><a class="delete"
									href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__"
									target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
									|&nbsp;<a
									href="__URL__/readmsg/id/{$vo['id']}/navTabId/__MODULE__"
									target="dialog" rel="readmsg" mask="true" height="300">阅读</a></td>
							</tr>
							</volist>
						</tbody>
					</table>
					<div class="panelBar">
						<div class="pages">
							<span>每页</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
								<eq name="numPerPage" value="24"><option value="24" selected>24</option><else /><option value="24">24</option></eq>
								<eq name="numPerPage" value="50"><option value="50" selected>50</option><else /><option value="50">50</option></eq>
								<eq name="numPerPage" value="100"><option value="100" selected>100</option><else /><option value="100">100</option></eq>
								<eq name="numPerPage" value="200"><option value="200" selected>200</option><else /><option value="200">200</option></eq>
							</select> <span>条，共{$totalCount}条</span>
						</div>
						<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>